import request from '@/utils/request'

// 查询作品存储列表
export function listUser_works(query) {
  return request({
    url: '/system/user_works/list',
    method: 'get',
    params: query
  })
}

// 查询作品存储详细
export function getUser_works(worksId) {
  return request({
    url: '/system/user_works/' + worksId,
    method: 'get'
  })
}

// 新增作品存储
export function addUser_works(data) {
  return request({
    url: '/system/user_works',
    method: 'post',
    data: data
  })
}

// 修改作品存储
export function updateUser_works(data) {
  return request({
    url: '/system/user_works',
    method: 'put',
    data: data
  })
}

// 删除作品存储
export function delUser_works(worksId) {
  return request({
    url: '/system/user_works/' + worksId,
    method: 'delete'
  })
}
